package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.model.dto.request.InstitutionResetPasswordReqDTO;
import com.jzo2o.customer.model.dto.request.RegisterDTO;
import com.jzo2o.customer.service.IServeProviderService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController("openServeProviderController")
@RequestMapping("/open/serve-provider/institution")
@Api(tags = "注册忘记密码 - 相关接口")
public class ServeProviderController {
    @Resource
    private IServeProviderService serveProviderService;

    /**
     * 机构注册
     * @param registerDTO
     */
    @PostMapping("/register")
    public void register(@RequestBody InstitutionRegisterReqDTO registerDTO) {
        serveProviderService.register(registerDTO);
    }


}
